//
//  BlueViewController.m
//  addChildViewController
//
//  Created by -_Kazuto on 16/11/6.
//  Copyright © 2016年 David. All rights reserved.
//

#import "BlueViewController.h"

@interface BlueViewController ()

@end

@implementation BlueViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)clickButton:(id)sender{
    UIAlertController *alertController=[UIAlertController alertControllerWithTitle:@"警告" message:@"你在蓝色页面点击了按钮！" preferredStyle:UIAlertControllerStyleAlert];
    UIAlertAction *alertAction=[UIAlertAction actionWithTitle:@"ok" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
        [alertController dismissViewControllerAnimated:YES completion:nil];
    }];
    [alertController addAction:alertAction];
    [self presentViewController:alertController animated:YES completion:nil];
}

@end
